import request from '@/request/api'
// 1、新增抽查
export function addCheck(data) {
  return request({
    url: '/eam-service-ticket/ticket/spotcheck/insert',
    method: 'post',
    data: data
  })
}
// 2、根据票id获取抽查信息
export function getCheckInfo(ticketId = "") {
  return request({
    url: '/eam-service-ticket/ticket/spotcheck/getListByWorkTicketId',
    method: 'get',
    params: {
      ticketId
    }
  })
}
// 3、工作票抽查数据列表
export function getListAndPaging(data) {
  return request({
    url: '/eam-service-ticket/ticket/spotcheck/getListAndPaging',
    method: 'post',
    data:data
  })
}